home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bare Bones Software / BBEdit 4.0 / ToolServer Support / Copy to MPW folder / BBEditStartup < prev    next >
Text File  |  1994-03-07  |  2KB  |  52 lines

  1. #    BBEditStartup
  2. #    Version 2.5.4
  3. #    January 3, 1994
  4.  
  5. #    This script is invoked by BBEdit when it establishes the ToolServer
  6. #    connection. It should reside in the same folder as ToolServer.
  7.  
  8. #############################################################################
  9.  
  10. #    The commands in this section MUST NOT BE ALTERED, or the link between
  11. #    BBEdit and ToolServer will not function correctly.
  12.  
  13. Export BBEditNBPObj
  14. Export BBEditNBPType
  15. Export BBEditNBPZone
  16. Export BBEditPPCPortName
  17. Export BBEditPPCClientName
  18. Export BBEditIsRemote
  19. Export BBEditExists
  20.  
  21. unalias File
  22.  
  23. if `Exists "{MPW}"Scripts:BBEdit•File` == ""
  24.     echo '### The "File" command may not work properly, because the'
  25.     echo '### "BBEdit•File" script is missing from your Scripts folder.'
  26.     echo
  27.     echo '### Also make sure that you have installed the custom "BBEdit•Line"'
  28.     echo '### script in your Scripts folder.'
  29.     
  30.     alias File Target
  31. else
  32.     alias File '"{MPW}"Scripts:BBEdit•File'
  33.     alias Line '"{MPW}"Scripts:BBEdit•Line'
  34. end
  35.  
  36. if `Exists "{MPW}"Tools:RBBEdit` == ""
  37.     echo
  38.     echo '### The "RBBEdit" tool is missing from your Tools folder.'
  39.     echo '### Until you install it, the File and Line commands will'
  40.     echo '### not work.'
  41.     echo
  42.     echo '### Also make sure that you install the custom BBEdit•File and BBEdit•Line'
  43.     echo '### scripts in your Scripts folder'
  44. end
  45.  
  46. For __Startup__i in `(Files "{ShellDirectory}"BBEditStartup•≈ || Set Status 0) ≥ dev:null`
  47.     Execute "{__Startup__i}"
  48. End
  49. Unset __Startup__i
  50.  
  51. #############################################################################
  52.